﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Young3.FMSearch.Core.Entities.GameVersions;
using Young3.FMSearch.Core.Managers;
using Young3.FMSearch.Core.Offsets;
using Young3.FMSearch.Core.Attributes;

namespace Young3.FMSearch.Core.Entities.InGame
{
    //[FMType(UseCache = false)]
    public class Continent : BaseObject
    {
        public Continent(int memoryAddress, IVersion version)
            : base(memoryAddress, version)
        { }
        public Continent(int memoryAddress, ArraySegment<byte> originalBytes, IVersion version)
            : base(memoryAddress, originalBytes, version)
        { }

        [FMEntityAttribute(ContinentOffsets.ContinentName)]
        public string Name { get; internal set; }

        [FMEntityAttribute(ContinentOffsets.FederationShortName)]
        public string FederationShortName { get; internal set; }

        [FMEntityAttribute(ContinentOffsets.FederationName)]
        public string FederationName { get; internal set; }

        [FMEntityAttribute(ContinentOffsets.ContinentShortName)]
        public string Shortname { get; internal set; }

        [FMEntityAttribute(ContinentOffsets.Strength)]
        public Single Strength { get; internal set; }

        public override string ToString()
        {
            return Name;
        }
    }
}
